package jpa.domain;

import java.io.Serializable;
import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

/**
 * 系统管理员
 * @ClassName: SystemUser   
 * @Description: 系统管理员
 * @author HiSay  
 * @date  2014-10-14 09:35:50
 *
 */
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) 
@Table(name="ticket_SystemUser")
public class SystemUser implements Serializable {

	@Override
	public String toString() {
		return "SystemUser [id=" + id + ", name=" + name + ", sex=" + sex
				+ ", loginId=" + loginId + ", password=" + password
				+ ", phone=" + phone + "]";
	}
	/**   
	 * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)   
	 */ 
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	@Id
	private String id = UUID.randomUUID().toString();
	
	/**
	 * 管理员呢称
	 */
	@Column(length=50)
	private String name = null;

	/**
	 * 管理员性别
	 */
	@Column
	private Integer sex = null;

	/**
	 * 登陆名称
	 */
	@Column(length=50)
	private String loginId = null;

	/**
	 * 登陆密码
	 */
	@Column(length=50)
	private String password = null;

	/**
	 * 联系电话
	 */
	@Column(length=50)
	private String phone = null;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public String getLoginId() {
		return loginId;
	}
	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
}
